package com.cuijq.counterv6.reporter;

import com.cuijq.counterv6.service.MetricsStorage;
import com.cuijq.counterv6.service.impl.RedisMetricsStorage;
import com.cuijq.counterv6.utils.Aggregator;
import java.util.List;

/**
 * @Classname EmailReporter
 * @Description TODO
 * @Date 2021/5/4 15:09
 * @Created by CuiJQ
 */
public class EmailReporter extends ScheduleReporter {

  private static final Long DAY_HOURS_IN_SECONDS = 86400L;
  // 兼顾代码的易用性，新增一个封装了默认依赖的构造函数

  public EmailReporter(List emailToAddresses) {
    this(new RedisMetricsStorage(), new Aggregator(), (StatViewer) (new EmailViewer(emailToAddresses)));
  } // 兼顾灵活性和代码的可测试性，这个构造函数继续保留

  public EmailReporter(MetricsStorage metricsStorage, Aggregator aggregator, StatViewer viewer) {
    super(metricsStorage, aggregator, viewer);
  }

  public void addToAddress(String s) {
  }

  public void startDailyReport() {
  }
}